package com.geiv.backend.service;

import com.geiv.backend.mapper.StudentMapper;
import com.geiv.backend.request.LoginMessage;
import com.geiv.backend.result.Student_BaseData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * FileName:StudentService
 * Author:  shadowsouls
 * Date:    2021/6/13 14:03
 * Description: student的service层
 */
@Service
public class StudentService {
    @Autowired
    StudentMapper mapper;

    public Student_BaseData getStudentDataBySid(String sid){
       return mapper.selectResultByStudentId(sid);
    }

    public String studentLogin(String username,String password) {
        return mapper.studentLogin(username, password);
    }
}
